
<form [formGroup]='form' (ngSubmit)='OnSubmit($event,form)'>

  <nz-form-item>
    <nz-form-label [nzSpan]="5">组织名称</nz-form-label>
    <nz-form-control nzHasFeedback [nzSpan]="12" nzErrorTip="请输入组织名称" >
      <input formControlName='Name' class="inputVal" nz-input name="required" required style="width: 250px;margin-left: 20px;" />
    </nz-form-control>
  </nz-form-item>

  <nz-form-item>
      <nz-form-label [nzSpan]="5">上级组织</nz-form-label>
      <!-- 级联选择 -->
      <nz-cascader formControlName='ParentName' nzChangeOnSelect 
          [nzOptions]="nzOptions" [(ngModel)]="values" (ngModelChange)="onChanges($event)" 
          style="width: 250px;margin-left: 20px;"> 
      </nz-cascader>
  </nz-form-item>
    
  <nz-form-item>
      <nz-form-label [nzSpan]="5">组织负责人</nz-form-label>
      <nz-form-control nzHasFeedback [nzSpan]="12" nzErrorTip="Input is required" >
        <input formControlName='Leader' class="inputVal" nz-input style="width: 250px;margin-left: 20px;" />
      </nz-form-control>
  </nz-form-item>

  <button nz-button type="submit" [disabled]='!form.valid' class="toSure">确定</button>
  <p nz-button (click)='cancel()' class="toCancel">取消</p>
    
</form>
  
  